package com.honey.mybatis.generator.page.field;

import com.honey.compilation.java.Decoration;
import com.honey.compilation.java.JavaVisibility;
import com.honey.core.types.FullyQualifiedJavaType;
import com.honey.core.types.JDKFullyQualifiedJavaType;
import com.honey.mybatis.generator.AbstractField;

public class PageBeginNameField extends AbstractField {

	private static final String FIELD_NAME="PAGE_BEGIN_NAME" ;
	
	private static final String INITIALIZATION ="begin";
	
	private static final FullyQualifiedJavaType TYPE = JDKFullyQualifiedJavaType.getStringInstance();
	
	private static final String[] JAVA_DOC=new String[]{
		"起始位置参数名称."
	} ;
	
	/*
	 * (non-Javadoc)
	 * @see com.honey.mybatis.generator.AbstractField#getFieldName()
	 */
	@Override
	protected String getFieldName() {
		return FIELD_NAME;
	}
	
	/*
	 * (non-Javadoc)
	 * @see com.honey.mybatis.generator.AbstractField#getJavaDoc()
	 */
	@Override
	protected String[] getJavaDoc() {
		return JAVA_DOC;
	}
	
	/*
	 * (non-Javadoc)
	 * @see com.honey.mybatis.generator.AbstractField#getType()
	 */
	@Override
	protected FullyQualifiedJavaType getType() {
		return TYPE;
	}
	
	@Override
	protected Decoration getDecoration() {
		Decoration answer = super.getDecoration();
		answer.setFinal(true);
		answer.setStatic(true);
		answer.setVisibility(JavaVisibility.PUBLIC);
		return answer;
	}

	@Override
	protected String getInitialization() {
		return INITIALIZATION;
	}

}
